package com.kabigon.tiny.event;

import com.kabigon.tiny.domain.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;

/**
 * @author xu.biao
 * @version v1.0
 * @Package com.kabigon.tiny.event
 * @data 2023/4/19 23:46
 */
@Slf4j
public class UserRegisterEvent extends ApplicationEvent {

    private static final long serialVersionUID = 514950858619803447L;
    private User user;

    public UserRegisterEvent(User user) {
        super(user);
        this.user = user;
    }

    public User getUser() {
        return user;
    }
}
